cmake_minimum_required(VERSION 3.17)
project(OpenCV)

set(CMAKE_CXX_STANDARD 14)

aux_source_directory(./src DIR_SRC)

# open cv 目录
set(OPENCV_DIR D:/OpenCV-MinGW-Build-OpenCV-4.5.2-x64)

# include目录
include_directories(${OPENCV_DIR}/include)
include_directories(include)

#库目录
link_directories(${OPENCV_DIR}/x64/mingw/lib)

# 库
link_libraries(opencv_core452
        opencv_highgui452
        opencv_imgproc452
        opencv_calib3d452
        opencv_dnn452
        opencv_features2d452
        opencv_flann452
        opencv_gapi452
        opencv_imgcodecs452
        opencv_ml452
        opencv_objdetect452
        opencv_photo452
        opencv_stitching452
        opencv_video452
        opencv_videoio452
        )
add_executable(OpenCV ${DIR_SRC})

